package com.api.shopapi.service.impl;

import com.api.shopapi.entity.MedicationSchedulingMorningItem;
import com.api.shopapi.mapper.MedicationSchedulingMorningItemMapper;
import com.api.shopapi.service.MedicationSchedulingMorningItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("MedicationSchedulingMorningItemServiceImplOne")
public class MedicationSchedulingMorningItemServiceImpl implements MedicationSchedulingMorningItemService {

    @Autowired
    private MedicationSchedulingMorningItemMapper medicationSchedulingMorningItemMapper;


    @Override
    public int insert(MedicationSchedulingMorningItem medicationSchedulingMorningItem) {
        return medicationSchedulingMorningItemMapper.insert(medicationSchedulingMorningItem);
    }

    @Override
    public int updateByMedicationSchedulingMorningItemCode(MedicationSchedulingMorningItem medicationSchedulingMorningItem) {
        return medicationSchedulingMorningItemMapper.updateByMedicationSchedulingMorningItemCode(medicationSchedulingMorningItem);
    }

    @Override
    public int deleteByMedicationSchedulingMorningItemCode(String medicationSchedulingMorningItemCode) {
        return medicationSchedulingMorningItemMapper.deleteByMedicationSchedulingMorningItemCode(medicationSchedulingMorningItemCode);
    }

    @Override
    public MedicationSchedulingMorningItem getByMedicationSchedulingMorningItemCode(String medicationSchedulingMorningItemCode) {
        return medicationSchedulingMorningItemMapper.getByMedicationSchedulingMorningItemCode(medicationSchedulingMorningItemCode);
    }

    @Override
    public List<MedicationSchedulingMorningItem> getListByMedicationSchedulingMorningCode(String medicationSchedulingMorningCode) {
        return medicationSchedulingMorningItemMapper.getListByMedicationSchedulingMorningCode(medicationSchedulingMorningCode);
    }

    @Override
    public int deleteByMedicationSchedulingMorningCode(String medicationSchedulingMorningCode) {
        return medicationSchedulingMorningItemMapper.deleteByMedicationSchedulingMorningCode(medicationSchedulingMorningCode);
    }
}
